import { createApp } from 'vue'
import App from './App.vue'
import { Request } from '@/service/request'
import VueAxios from 'vue-axios'

// import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import router from './router'
import store from './store'
import { components } from './plugins/element-plus'

const app = createApp(App)
for (const cpn of components) {
  app.component(cpn.name, cpn)
}
app.use(store)
app.use(router)
// app.use(ElementPlus)
app.use(VueAxios, Request.init())
app.mount('#app')
